package com.demo.bean;

import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.springframework.boot.context.properties.ConfigurationProperties;

import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

@ConfigurationProperties(prefix = "person")
@Component
@Data
@ToString
//@NoArgsConstructor
public class Person {
    public String name;
    public int age;
    public Pet pet;
    public Car currentCar;
    public Map<String, List<Map>> assets;
}
